package org.jenijo.querydroid.model;

import java.util.ArrayList;

public class QCM {
	private int					id;
	private String				titre;
	private String				description;
	private String				author;
	private ArrayList<Question>	questions	= new ArrayList<Question>();
	
	public QCM(int id, String titre, String description, String auth) {
		super();
		this.id = id;
		this.titre = titre;
		this.description = description;
		this.author = auth;
	}
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	
	/**
	 * @return the titre
	 */
	public String getTitre() {
		return titre;
	}
	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * @return the questions
	 */
	public ArrayList<Question> getQuestions() {
		return questions;
	}
	
	public void addQuestion(Question q) {
		this.questions.add(q);
	}

	/**
	 * @return the author
	 */
	public String getAuthor() {
		return author;
	}
	
}
